﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
namespace HolcimProject.Common
{
    public class Constants
    {
        #region Site
        public static string Site_Url = SPContext.Current.Web.Url;
        #endregion

        #region List name
        public const string List_Finding = "Finding";
        public const string List_FindingAuditName = "FindingAuditName";
        public const string List_FindingSystem = "FindingSystem";
        public const string List_FindingClause = "FindingClause";
        public const string List_FindingDepartment = "FindingDepartment";
        public const string List_FindingClassification = "FindingClassification";
        public const string List_FindingTask = "FindingTasks";
        #endregion

        #region Field Name

        #region Field name of Finding List
        public const string Field_Finding_AuditName = "Audit Name";
        public const string Field_Finding_System = "System";
        public const string Field_Finding_Clause = "Clause";
        public const string Field_Finding_Classification = "Classification";
        public const string Field_Finding_LeadAuditor = "Lead Auditor";
        public const string Field_Finding_Auditee = "Auditee";
        public const string Field_Finding_Finding = "Finding";
        public const string Field_Finding_Correction = "Correction";
        public const string Field_Finding_RootCause = "Root Cause";
        public const string Field_Finding_Corrective = "Corrective";
        public const string Field_Finding_CompleteDate = "Completed Date";
        public const string Field_Finding_PersonInChage = "Person In Charge";
        public const string Field_Finding_Evidence = "Evidence";
        public const string Field_Finding_CompleteDate2 = "Completed Date 2";
        public const string Field_Finding_Site = "Site";
        public const string Field_Finding_Department = "Department";
        public const string Field_Finding_AuditeeDepartment = "Auditee Department";
        public const string Field_Finding_CreateBy = "Created By";
        #endregion

        #region Field name of FindingTasks List
        public const string Field_FindingTasks_Finding = "Finding";
        public const string Field_FindingTasks_Owner = "Owner";
        public const string Field_FindingTasks_Role = "Role";
        public const string Field_FindingTasks_State = "State";
        public const string Field_FindingTasks_Status = "Status";
        public const string Field_FindingTasks_Comment = "Comment";
        public const string Field_FindingTasks_DateLastEdit = "Modified";
        public const string Field_FindingTasks_Flat = "Flat";
        public const string Field_FindingTasks_CompleteDate = "Complete Date";
        #endregion       

        #region Field name of FindingDepartment List
        public const string Field_FindingDepartment_Site = "Site";
        public const string Field_FindingDepartment_Department = "Department";
        public const string Field_FindingDepartment_AuditDepartment = "Audit Department";
        #endregion

        #region Field name of FindingSystem List
        public const string Field_FindingSystem_System= "System";
        public const string Field_FindingSystem_Clause = "Clause";        
        #endregion
        
        #endregion

        #region State
        public const string State_CreateFinding = "Created";
        public const string State_EditActionLog = "Update Action Log";
        public const string State_ReviewActionLog = "Review Action Log";
        public const string State_ApprovalActionLog_Auditor = "Auditor Approval Action Log";
        public const string State_ApprovalActionLog_LeadAuditor = "Lead Auditor Approval Action Log";
        public const string State_UpdateEvidence = "Update Evidence";
        public const string State_ApproveEvidence_Auditor = "Auditor Approval Evidence";
        public const string State_ApproveEvidence_ISOAdmin = "ISO Admin Approval Evidence";
        public const string State_ApproveEvidence_ISOAdmin_Finish = "Finish Evidence";
        public const string State_Finish = "Finish";
        #endregion

        #region Status
        public const string Status_NoYet = "Not yet";
        public const string Status_OnGoing = "On going";
        public const string Status_Late = "Late";
        public const string Status_Recurrent = "Recurrent";
        public const string Status_Done = "Done";
        public const string Status_Finish = "Finish";
        #endregion

        #region Role
        public const string Role_Auditor = "Auditor";
        public const string Role_LeadAuditor = "Lead auditor";
        public const string Role_ISOAdmin = "ISO Admin";
        public const string Role_Auditee = "Auditee";
        public const string Role_PersonInChage = "Person In Charge";
        #endregion

        #region Group name
        public const string Group_ISOAdmin = "ISOAdmin";
        public const string Group_Leader = "GroupLeader";
        #endregion

        #region Link
        public const string Link_PageAllFinding = "/SitePages/AllFinding.aspx";
        #endregion

        #region File type not support
        public static string[] arrFileType = { ".exe" };
        public static long File_Attach_FileSize = 52428800;
        #endregion
    }
}
